export const formatphone = (phone) => {
  if (typeof phone == 'number') {
    phone = phone.toString()
  }
  return phone.substr(0, 3) + '****' + phone.substr(7, 11);
  // return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
};